import { defineConfig } from 'vite';
import fs from 'fs';
import path from 'path';

import vue from '@vitejs/plugin-vue'; // 引入插件

export default defineConfig({
	plugins: [vue()], // 使用插件
    server: {
        https: {
            key: fs.readFileSync(path.resolve(__dirname, 'ssl/cert.key')),
            cert: fs.readFileSync(path.resolve(__dirname, 'ssl/cert.crt')),
        },
    },
});